#! /usr/bin/env bash

cache=$HOME/.cache/touhcpadState

if ! [ -f $cache ]; then
    echo 1 > $cache
    exit
fi

curr=$(cat $cache)
curr=$(( ((curr + 1)) % 2 ))

xinput set-prop 'GXTP7863:00 27C6:01E0 Touchpad' 'Device Enabled' $curr
echo $curr > $cache
